{% extends "module/common.html" %}
	{% block handle %}
    	var handle={
    		name:'模板',
    		serv:'template'
    	};
    	  	          
    {% endblock %}
    {% block listhead %}
        //表格配置 begin head配置  属性 bindFunc,name,css,sortKey,sortByDefault,headcss
		var listHeadCfg={
			name:{name:'模板名称',css:{width:'20%'},bindFunc:true},
			jsonKey:{name:'模板键值',css:{width:'15%'},bindFunc:true},
			fieldType:{name:'模板类型',css:{width:'15%'}},
			version:{name:'版本号',css:{width:'15%'}},
			modifyDate:{name:'修改日期',css:{width:'15%'}},
			ctrl:{name:'操作',css:{width:'20%'},bindFunc:true}
		}
		//模板
		var renderTemplate=$("<div class='table_template'>"+
													"<div class='tr'>"+
															"<div class='td' jtext='name'></div>"+
															"<div class='td' jtext='jsonKey'></div>"+
															"<div class='td' jtext='fieldType'></div>"+													
															"<div class='td' jtext='content'></div>"+
															"<div class='td' jtext='version'></div>"+
															"<div class='td' jtext='modifyDate'></div>"+
															"<div class='td' jtext='ctrl'></div>"+										
													"</div>"+
												"</div>");
    {% endblock %}
    {% block load %}
        
    {% endblock %}
    {% block listfunc %}
		tableHandle.addFunc("ctrl",function(){
			return $("<button class='btn' callFunc='click:editTemplate'>编辑</button><button class='btn' callFunc='click:delTemplate'>删除</button>");
		},body);	
        tableHandle.addFunc("name",yanhx.findFunc("$detail"),body);
        tableHandle.addFunc("jsonKey",yanhx.findFunc("$detail"),body);          		
	{% endblock %}	
	{% block other %}
   
    {% endblock %}    		

			